import React from "react";
import eventBus from "./utils/eventBus";

class World extends React.Component {
  render() {
    return (
      <div>
        <h4>World</h4>
      </div>
    );
  }

  componentDidMount() {
    // 消息订阅
    eventBus.on("abcd", () => {
      console.log("World abcd");
    });
  }
}

export default World;
